package eteam.aps.model.export.query;

import com.fasterxml.jackson.annotation.JsonIgnore;
import eteam.aps.common.entity.PageQuery;
import eteam.aps.common.entity.ParentEntity;
import eteam.aps.common.helper.Helper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author Ll
 * @since 2024/1/17
 */
@ApiModel("任务令产品编码状态清单查询条件")
public class ProductSerialQuery extends PageQuery {

    @ApiModelProperty("制令号")
    private String mocCode;

    @ApiModelProperty("物料编号")
    private String invCode;

    @ApiModelProperty("产品编号")
    private String barCode;

    @JsonIgnore
    private final Integer state = ParentEntity.FSTATE_DELETED;

    public String getMocCode() {
        return mocCode;
    }

    public void setMocCode(String mocCode) {
        if (Helper.isNotEmpty(mocCode)) this.mocCode = Helper.likeSql(mocCode);
    }

    public String getInvCode() {
        return invCode;
    }

    public void setInvCode(String invCode) {
        if (Helper.isNotEmpty(invCode)) this.invCode = Helper.likeSql(invCode);
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        if (Helper.isNotEmpty(barCode)) this.barCode = Helper.likeSql(barCode);
    }

    public Integer getState() {
        return state;
    }
}
